package com.cskaoyan.bean.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

/**
 * @description
 * @date        2022.04.08 17:24
 * @package     com.cskaoyan.bean.vo
 * @Classname   AuthLoginVO
 * @author      rebaogu
 */
@NoArgsConstructor
@Data
public class AuthLoginBO {
    @Pattern(regexp ="^[a-zA-Z][a-zA-Z0-9_]{4,15}$",message = "字母开头，允许5-16字节，允许字母数字下划线")
    private String username ;

    @Pattern(regexp = "^(?=.*[a-zA-Z0-9].*)(?=.*[a-zA-Z.!@#$%^&*].*)(?=.*[0-9.!@#$%^&*].*).{6,32}$", message = "密码至少包含数字，字母和符号的两种")
    private String password ;

}
